﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using Caliburn.Micro;
using System.Diagnostics;

namespace DomusDotNet.Sbm.Client.SL4.Infrastructure
{
	 

    public class DebugLog: ILog
    {

        string prefix;
        public DebugLog(Type type) {
            this.prefix = type.Name;
        }


        public void Error(Exception exception)
        {
            Debug.WriteLine("[ERROR: {0}] {1}", prefix, exception);
        }

        public void Info(string format, params object[] args)
        {
            Debug.WriteLine("[INFO: {0}] {1}", prefix, string.Format(format, args));
        }

        public void Warn(string format, params object[] args)
        {
            Debug.WriteLine("[args: {0}] {1}", prefix, string.Format(format, args));
        }
    }
}
